package cn.jr.pojo;

//订单项表
@SuppressWarnings("all")
public class OrderProject{

    private Integer orderProjectId;//订单项表主键

    private Integer orderId;//订单主键

    private String waresNumber; //商品编号(继承)
    private String waresName; //商品名称(继承)
    private Integer waresCount;//商品数量
    private Double waresPrice;//商品单价(继承)

    private Double waresAllPrice;//商品总价
    private Double orderReallyPrice;//订单项表实际总价



    //7个参（没有订单项表主键）


    public OrderProject(Integer orderId, String waresNumber, String waresName, Integer waresCount, Double waresPrice, Double waresAllPrice, Double orderReallyPrice) {
        this.orderId = orderId;
        this.waresNumber = waresNumber;
        this.waresName = waresName;
        this.waresCount = waresCount;
        this.waresPrice = waresPrice;
        this.waresAllPrice = waresAllPrice;
        this.orderReallyPrice = orderReallyPrice;
    }

    //6个参（没有两个主键）
    public OrderProject(String waresNumber, String waresName, Integer waresCount, Double waresPrice, Double waresAllPrice, Double orderReallyPrice) {
        this.waresNumber = waresNumber;
        this.waresName = waresName;
        this.waresCount = waresCount;
        this.waresPrice = waresPrice;
        this.waresAllPrice = waresAllPrice;
        this.orderReallyPrice = orderReallyPrice;
    }

    //2个参，总价和实际价格
    public OrderProject(Double waresAllPrice, Double orderReallyPrice) {
        this.waresAllPrice = waresAllPrice;
        this.orderReallyPrice = orderReallyPrice;
    }

    //2个参，订单主键和商品编号
    public OrderProject(Integer orderId, String waresNumber) {
        this.orderId = orderId;
        this.waresNumber = waresNumber;
    }

    //全参


    public OrderProject(Integer orderProjectId, Integer orderId, String waresNumber, String waresName
            , Integer waresCount, Double waresPrice, Double waresAllPrice, Double orderReallyPrice) {
        this.orderProjectId = orderProjectId;
        this.orderId = orderId;
        this.waresNumber = waresNumber;
        this.waresName = waresName;
        this.waresCount = waresCount;
        this.waresPrice = waresPrice;
        this.waresAllPrice = waresAllPrice;
        this.orderReallyPrice = orderReallyPrice;
    }

    //无参
    public OrderProject() {
    }

    public Integer getOrderProjectId() {
        return orderProjectId;
    }

    public void setOrderProjectId(Integer orderProjectId) {
        this.orderProjectId = orderProjectId;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getWaresCount() {
        return waresCount;
    }

    public void setWaresCount(Integer waresCount) {
        this.waresCount = waresCount;
    }

    public Double getWaresAllPrice() {
        return waresAllPrice;
    }

    public void setWaresAllPrice(Double waresAllPrice) {
        this.waresAllPrice = waresAllPrice;
    }

    public Double getOrderReallyPrice() {
        return orderReallyPrice;
    }

    public void setOrderReallyPrice(Double orderReallyPrice) {
        this.orderReallyPrice = orderReallyPrice;
    }

    public String getWaresNumber() {
        return waresNumber;
    }

    public void setWaresNumber(String waresNumber) {
        this.waresNumber = waresNumber;
    }

    public String getWaresName() {
        return waresName;
    }

    public void setWaresName(String waresName) {
        this.waresName = waresName;
    }

    public Double getWaresPrice() {
        return waresPrice;
    }

    public void setWaresPrice(Double waresPrice) {
        this.waresPrice = waresPrice;
    }

    @Override
    public String toString() {
        return "OrderProject{" +
                "orderProjectId=" + orderProjectId +
                ", orderId=" + orderId +
                ", waresNumber='" + waresNumber + '\'' +
                ", waresName='" + waresName + '\'' +
                ", waresCount=" + waresCount +
                ", waresPrice=" + waresPrice +
                ", waresAllPrice=" + waresAllPrice +
                ", orderReallyPrice=" + orderReallyPrice +
                '}';
    }
}
